// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import * as gsap from 'gsap'
import app from '@/assets/js/app'
import router from './router'
import echarts from 'echarts'
import store from './store'
import '@/assets/css/index.scss'
import VueI18n from 'vue-i18n'
import Result from './assets/js/app/cmlpanel/components/ai/voiceRecognize/result.js' //语音识别结果组件
import App from './assets/js/app/baseComponents/anovApp'

Vue.use(app.plugins)
Vue.use(app.cmlpanel, store)
Vue.use(VueI18n)
Vue.prototype.$result = Result
Vue.prototype.$echarts = echarts
// 国际化
const i18n = new VueI18n({
  locale: 'zh-CN',
  messages: {
    'zh-CN': require('./assets/i18n/zh-CN.json'),
    'en-US': require('./assets/i18n/en-US.json')
  }
})

//可视化平台初始化
window.app = app

app.root = new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')

app.init()
